﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="QuestionList1.aspx.cs" Inherits="Page_Community_QuestionList1" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta name="format-detection" content="telephone=no" />
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
    <title>咨询</title>
    <meta name="apple-touch-fullscreen" content="yes" />
    <meta content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=0" name="viewport" />
    <meta content="yes" name="apple-mobile-web-app-capable" />
    <meta content="black" name="apple-mobile-web-app-status-bar-style" />


    <script src="../../Scripts/jquery-1.8.0.min.js"></script>
    <script src="../../Scripts/slick.min.js"></script>
    <script src="../../Scripts/viewport.js"></script>
    <link href="../../CSS/community-info.css" rel="stylesheet" />
    <link href="../../CSS/slick.css" rel="stylesheet" />
    <link href="../../CSS/base-640.css" rel="stylesheet" />
</head>
<body>
    <div class="container clearfix">

        <div class="comment">
            <ul class="tab clearfix">
                <li style="width: 116px;"><span>咨询列表</span></li>
            </ul>
            <div class="return-comment">
                <%if (CommunityTopicList != null)
                    {%>
                <ul id="shareList">
                    <%foreach (var item in CommunityTopicList)
                        { %>
                    <li class="clearfix" onclick="window.open('TopicDetial.aspx?topicId=11&openid=<%=openid %>','_self')">
                        <img src="<%=item.HeadImg %>">
                        <span class="name"><%=item.Name %></span>
                        <span class="number">(+<%=item.Number %>)</span>
                        <p class="time"><%=item.AddTime %></p>
                        <p class="mes"><%=item.Contents %></p>
                        <%if (!string.IsNullOrEmpty(item.imgs))
                            {%>
                        <ul class="user-pic-list clearfix">
                            <% var imgList = item.imgs.Split(',');
                                foreach (var items in imgList)
                                {%>
                            <li class="ng-scope">
                                <div class="img">
                                    <img src="<%=items %>">
                                </div>
                            </li>
                            <%}%>
                        </ul>
                        <% } %>
                    </li>
                    <% } %>
                </ul>
                <% }
                    else
                    {%>
                <div class="no_record noneData" style="">
                    <div>
                        <img src="http://cdn.xsmore.com/Images/Shop/no-data-icon.png"><br>
                        无咨询记录
                    </div>
                </div>
                <% }%>
            </div>
        </div>

        <a href="NewTopic.aspx?openid=<%=openid %>&CardId=<%=DoctorCardId %>" class="link">
            <img src="../../Images/c-write.png" /></a>
    </div>
</body>


<script type="text/javascript">

    //(function () {
    //    var dt = new dataLoader();
    //    dt.init({
    //        url: "/Handler/CommunityHandler.ashx", //接口地址
    //        data: {
    //            pageIndex: 1,
    //            openid: 'omikXs5Wr3nPHR5SN_rQ2Fudr0FI',
    //            pageSize: 10,
    //            action: 'GetTopicShareList',
    //            TopPicId: '0'
    //        }, //接口参数
    //        objData: function (obj) {
    //            return obj.sharList;
    //        },
    //        content: $("#"),
    //        history: "bcyList",//cookie名称，用来缓存当前页面相关数据
    //        temp: function (obj) {
    //            //console.log(obj.AddTime);
    //            return '<li class="clearfix">' +
    //                    '<img src="' + obj.MemberHeadUrl + '">' +
    //                    '<p class="name">' + obj.MemberName + '</p>' +
    //                    '<p class="time">' + obj.AddTimeStr + '</p>' +
    //                    '<p class="mes">' + obj.ShareContent + '</p>' +
    //                    //(obj.LikeFlag === 1 ? '<span class="zan"><img src="http://cdn.xsmore.com/Images/bcy/zan-at-icon.png">' + obj.LikesCount + '</span>' : '<span class="zan"><img src="http://cdn.xsmore.com/Images/bcy/zan-icon.png">' + obj.LikesCount + '</span>') +
    //                    '</li>';
    //        },
    //        loading: {
    //            icon: "http://cdn.xsmore.com/Images/Common/m-tips-loading.gif",
    //            txt: "加载中..."
    //        },
    //        noData: function () {
    //            return '<div ><img src="http://cdn.xsmore.com/Images/Shop/no-data-icon.png"><br>无转发记录</div>';
    //            //$(".nodata").show();
    //        },
    //        fn: function (box) {
    //            //lazyload();
    //        }
    //    });
    //    var dts = new dataLoader();
    //    dts = dts.init({
    //        url: "/Handler/CommunityHandler.ashx", //接口地址
    //        data: {
    //            pageIndex: 1,
    //            openid: 'omikXs5Wr3nPHR5SN_rQ2Fudr0FI',
    //            pageSize: 10,
    //            action: 'GetTopicContentList',
    //            TopPicId: '0'
    //        }, //接口参数
    //        objData: function (obj) {
    //            return obj.CommentList;
    //        },
    //        content: $("#ContentList"),
    //        history: "bcyList",//cookie名称，用来缓存当前页面相关数据
    //        temp: function (obj) {
    //            return '<li class="clearfix">' +
    //                    '<img src="' + obj.MemberHeadUrl + '">' +
    //                    '<p class="name">' + obj.MemberName + '</p>' +
    //                    '<p class="time">' + obj.AddTimeStr + '</p>' +
    //                    '<p class="mes">' + obj.Content + '</p>' +
    //                    (obj.LikeFlag === 1 ? '<span class="zan" onclick="Like(this,' + obj.LikeFlag + ',' + obj.LikesCount + ',' + obj.IDPlus + ',165321,2)"><img src="http://cdn.xsmore.com/Images/bcy/zan-at-icon.png">' + obj.LikesCount + '</span>' : '<span class="zan" onclick="Like(this,' + obj.LikeFlag + ',' + obj.LikesCount + ',' + obj.IDPlus + ',165321,2)"><img src="http://cdn.xsmore.com/Images/bcy/zan-icon.png">' + obj.LikesCount + '</span>') +
    //                    '</li>';
    //        },
    //        loading: {
    //            icon: "http://cdn.xsmore.com/Images/Common/m-tips-loading.gif",
    //            txt: "加载中..."
    //        },
    //        noData: function () {
    //            return '<div ><img src="http://cdn.xsmore.com/Images/Shop/no-data-icon.png"><br>无评论记录</div>';
    //            //$(".nodata").show();
    //        },
    //        fn: function (box) {
    //            //lazyload();
    //        }
    //    });
    //})();

</script>

</html>
